import type { Socket as SocketClient } from 'socket.io-client';

type useSon = (eHub: SocketClient) => void;
const useSon: useSon = eHub => {
    // 注册socket
    eHub.on('prepare', (data: modeReturn) => {
        console.log(data);
    });
    eHub.on('setHero', () => {
        console.log('setHero');
    });
};
export default useSon;
